package com.qiche.service;

import com.github.pagehelper.PageInfo;
import com.qiche.aspect.Result;
import com.qiche.dto.Voucher1Dto;
import com.qiche.dto.VoucherDto;
import com.qiche.model.Voucher;
import com.qiche.model.VoucherRepository;

import java.util.List;

/**
 * Created by Linzw on 2018/01/24.
 */
public interface VoucherService extends IService<Voucher>{

   PageInfo<Voucher> selectByPage(Voucher voucher, int page, int limit);

   Voucher selectByCode(String code);
   // Agent selectByAccountId(Integer id);
   Result verify(String code);

    List<Voucher1Dto> selectByMerchantId(Long merchantId, Long id);
}
